package com.zznode.redsun.smartcrm.business.service;

import java.util.Collection;

import net.sf.json.JSONObject;

import org.springframework.transaction.annotation.Transactional;

import com.zznode.csp.domain.commons.query.Page;
import com.zznode.redsun.commons.dto.CustomerDto;
import com.zznode.redsun.commons.dto.CustomerQuery;
import com.zznode.redsun.commons.sercurity.shiro.LoginUser;

public interface CustomerService {

	@Transactional
	CustomerDto get(Long id);

	@Transactional
	void save(CustomerDto customer, LoginUser<Long> currentUser);

	@Transactional
	Page<JSONObject> queryForPage(CustomerQuery params, int pageno, int pagesize);

	@Transactional
	void fillDict(Collection<JSONObject> rows);
}
